﻿using FluentNHibernate.Mapping;
using PMS.Core;

namespace PMS.Data.NHibernate.Mapping
{
    public class ProductMapping : ClassMap<Product>
    {
        public ProductMapping()
        {
            Id(x => x.Id).GeneratedBy.GuidComb();
            Map(x => x.Name).Length(150).Not.Nullable();
        }
    }
}